package com.snts.synchronization.listener;

import java.util.TimerTask;

/*
 * Timer task which delegates run method to Runnable
 */

public class DelegatingTimerTask extends TimerTask {

	private Runnable delegate;

	public DelegatingTimerTask(Runnable delegate) {
		super();
		this.delegate = delegate;
	}

	@Override
	public void run() {
		delegate.run();
	}

}
